Updated room permission names
- Articles are now called items, in fact Articles only existed in alpha1 and 2 And considered to be the room content
This commit is contained in:
parent
e02d45d77e
commit
916ea41159
2 changed files with 14 additions and 14 deletions
|
@ -70,7 +70,7 @@ class RoomPermission {
|
|||
return oB("0000010");
|
||||
}
|
||||
|
||||
static int get listCategoriesAndProducts {
|
||||
static int get editRoomContent {
|
||||
return oB("0000100");
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ class RoomPermission {
|
|||
return [
|
||||
addArticles,
|
||||
removeArticles,
|
||||
listCategoriesAndProducts,
|
||||
editRoomContent,
|
||||
changeMeta,
|
||||
ota,
|
||||
changeAdmin,
|
||||
|
@ -107,11 +107,11 @@ class RoomPermission {
|
|||
|
||||
switch (permission) {
|
||||
case 1:
|
||||
return trans!.roomPermissionAddArticles;
|
||||
return trans!.roomPermissionAddItems;
|
||||
case 2:
|
||||
return trans!.roomPermissionRemoveArticles;
|
||||
return trans!.roomPermissionRemoveItems;
|
||||
case 4:
|
||||
return trans!.roomPermissionList;
|
||||
return trans!.roomPermissionEditContent;
|
||||
case 8:
|
||||
return trans!.roomPermissionChangeMeta;
|
||||
case 16:
|
||||
|
@ -130,11 +130,11 @@ class RoomPermission {
|
|||
|
||||
switch (permission) {
|
||||
case 1:
|
||||
return trans!.roomPermissionAddArticlesSubtitle;
|
||||
return trans!.roomPermissionAddItemsSubtitle;
|
||||
case 2:
|
||||
return trans!.roomPermissionRemoveArticlesSubtitle;
|
||||
return trans!.roomPermissionRemoveItemsSubtitle;
|
||||
case 4:
|
||||
return trans!.roomPermissionListSubtitle;
|
||||
return trans!.roomPermissionEditContentSubtitle;
|
||||
case 8:
|
||||
return trans!.roomPermissionChangeMetaSubtitle;
|
||||
case 16:
|
||||
|
|
|
@ -168,12 +168,12 @@
|
|||
"updateRoomPermissionsHint": "Update default permission set",
|
||||
"roomDefaultPermissions": "Default Permissions",
|
||||
|
||||
"roomPermissionAddArticles": "Add Articles",
|
||||
"roomPermissionAddArticlesSubtitle": "Allows users to add items to the shopping list",
|
||||
"roomPermissionRemoveArticles": "Remove Articles",
|
||||
"roomPermissionRemoveArticlesSubtitle": "Allows users to remove items from the shopping list",
|
||||
"roomPermissionList": "List Products and Categories",
|
||||
"roomPermissionListSubtitle": "Allows the user to view products and categories",
|
||||
"roomPermissionAddItems": "Add Items",
|
||||
"roomPermissionAddItemsSubtitle": "Allows users to add items to the shopping list",
|
||||
"roomPermissionRemoveItems": "Remove Items",
|
||||
"roomPermissionRemoveItemsSubtitle": "Allows users to remove items from the shopping list",
|
||||
"roomPermissionEditContent": "Edit Products and Categories",
|
||||
"roomPermissionEditContentSubtitle": "Allows the user to edit products and categories",
|
||||
"roomPermissionChangeMeta": "Change Room Metadata",
|
||||
"roomPermissionChangeMetaSubtitle": "Allows the user to edit the room name, description and icon",
|
||||
"roomPermissionManageOTA": "Manage OTAs",
|
||||
|
|
Loading…
Reference in a new issue