Improved tags #419

This commit is contained in:
the-djmaze 2022-06-03 14:46:05 +02:00
parent c0994b38e8
commit 9e4edd8843
5 changed files with 42 additions and 6 deletions

View file

@ -263,11 +263,17 @@ export class FolderModel extends AbstractModel {
kolabType: null,
collapsed: true
collapsed: true,
tagsAllowed: false
});
this.flags = ko.observableArray();
this.permanentFlags = ko.observableArray();
this.addSubscribables({
kolabType: sValue => this.metadata[FolderMetadataKeys.KolabFolderType] = sValue
kolabType: sValue => this.metadata[FolderMetadataKeys.KolabFolderType] = sValue,
permanentFlags: aValue => this.tagsAllowed(aValue.includes('\\*'))
});
this.subFolders = ko.observableArray(new FolderCollectionModel);
@ -296,9 +302,20 @@ export class FolderModel extends AbstractModel {
}
})
.extend({ notify: 'always' });
this.flags = ko.observableArray();
this.permanentFlags = ko.observableArray();
/*
https://www.rfc-editor.org/rfc/rfc8621.html#section-2
"myRights": {
"mayAddItems": true,
"mayRename": false,
"maySubmit": true,
"mayDelete": false,
"maySetKeywords": true,
"mayRemoveItems": true,
"mayCreateChild": true,
"maySetSeen": true,
"mayReadItems": true
},
*/
}
/**