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");
|
return oB("0000010");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get listCategoriesAndProducts {
|
static int get editRoomContent {
|
||||||
return oB("0000100");
|
return oB("0000100");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ class RoomPermission {
|
||||||
return [
|
return [
|
||||||
addArticles,
|
addArticles,
|
||||||
removeArticles,
|
removeArticles,
|
||||||
listCategoriesAndProducts,
|
editRoomContent,
|
||||||
changeMeta,
|
changeMeta,
|
||||||
ota,
|
ota,
|
||||||
changeAdmin,
|
changeAdmin,
|
||||||
|
@ -107,11 +107,11 @@ class RoomPermission {
|
||||||
|
|
||||||
switch (permission) {
|
switch (permission) {
|
||||||
case 1:
|
case 1:
|
||||||
return trans!.roomPermissionAddArticles;
|
return trans!.roomPermissionAddItems;
|
||||||
case 2:
|
case 2:
|
||||||
return trans!.roomPermissionRemoveArticles;
|
return trans!.roomPermissionRemoveItems;
|
||||||
case 4:
|
case 4:
|
||||||
return trans!.roomPermissionList;
|
return trans!.roomPermissionEditContent;
|
||||||
case 8:
|
case 8:
|
||||||
return trans!.roomPermissionChangeMeta;
|
return trans!.roomPermissionChangeMeta;
|
||||||
case 16:
|
case 16:
|
||||||
|
@ -130,11 +130,11 @@ class RoomPermission {
|
||||||
|
|
||||||
switch (permission) {
|
switch (permission) {
|
||||||
case 1:
|
case 1:
|
||||||
return trans!.roomPermissionAddArticlesSubtitle;
|
return trans!.roomPermissionAddItemsSubtitle;
|
||||||
case 2:
|
case 2:
|
||||||
return trans!.roomPermissionRemoveArticlesSubtitle;
|
return trans!.roomPermissionRemoveItemsSubtitle;
|
||||||
case 4:
|
case 4:
|
||||||
return trans!.roomPermissionListSubtitle;
|
return trans!.roomPermissionEditContentSubtitle;
|
||||||
case 8:
|
case 8:
|
||||||
return trans!.roomPermissionChangeMetaSubtitle;
|
return trans!.roomPermissionChangeMetaSubtitle;
|
||||||
case 16:
|
case 16:
|
||||||
|
|
|
@ -168,12 +168,12 @@
|
||||||
"updateRoomPermissionsHint": "Update default permission set",
|
"updateRoomPermissionsHint": "Update default permission set",
|
||||||
"roomDefaultPermissions": "Default Permissions",
|
"roomDefaultPermissions": "Default Permissions",
|
||||||
|
|
||||||
"roomPermissionAddArticles": "Add Articles",
|
"roomPermissionAddItems": "Add Items",
|
||||||
"roomPermissionAddArticlesSubtitle": "Allows users to add items to the shopping list",
|
"roomPermissionAddItemsSubtitle": "Allows users to add items to the shopping list",
|
||||||
"roomPermissionRemoveArticles": "Remove Articles",
|
"roomPermissionRemoveItems": "Remove Items",
|
||||||
"roomPermissionRemoveArticlesSubtitle": "Allows users to remove items from the shopping list",
|
"roomPermissionRemoveItemsSubtitle": "Allows users to remove items from the shopping list",
|
||||||
"roomPermissionList": "List Products and Categories",
|
"roomPermissionEditContent": "Edit Products and Categories",
|
||||||
"roomPermissionListSubtitle": "Allows the user to view products and categories",
|
"roomPermissionEditContentSubtitle": "Allows the user to edit products and categories",
|
||||||
"roomPermissionChangeMeta": "Change Room Metadata",
|
"roomPermissionChangeMeta": "Change Room Metadata",
|
||||||
"roomPermissionChangeMetaSubtitle": "Allows the user to edit the room name, description and icon",
|
"roomPermissionChangeMetaSubtitle": "Allows the user to edit the room name, description and icon",
|
||||||
"roomPermissionManageOTA": "Manage OTAs",
|
"roomPermissionManageOTA": "Manage OTAs",
|
||||||
|
|
Loading…
Reference in a new issue