Skip to content

Commit

Permalink
Added invitation hash field to the page
Browse files Browse the repository at this point in the history
  • Loading branch information
elizachi committed Feb 23, 2024
1 parent cf50bc0 commit 2fbf8b1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/domain/entities/NoteSettings.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Used to invite users to team
*/
export type InvitationHash = string;

/**
* NoteSettings entity
*/
Expand All @@ -16,4 +21,9 @@ export default interface NoteSettings {
* Is note enabled
*/
isPublic: boolean;

/**
* Invitation hash
*/
invitationHash: InvitationHash;
}
6 changes: 6 additions & 0 deletions src/presentation/pages/NoteSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
v-model:checked="noteSettings.isPublic"
label="is note public"
/>
<TextEdit
v-model:value="noteSettings.invitationHash"
:name="'invitationHash'"
:title="'Invitation Hash'"
:placeholder="'It will generate a new invitation hash...'"
/>
<div class="control__button">
<Button
class="header__plus"
Expand Down

0 comments on commit 2fbf8b1

Please sign in to comment.