updated view ui

This commit is contained in:
Gani Georgiev
2023-02-21 16:32:58 +02:00
parent 1075292321
commit 0afb09b3bd
31 changed files with 118 additions and 111 deletions
@@ -62,6 +62,13 @@
changeTab(TAB_SCHEMA);
}
$: if (collection.type === TYPE_VIEW) {
// reset create, update and delete rules
collection.createRule = null;
collection.updateRule = null;
collection.deleteRule = null;
}
export function changeTab(newTab) {
activeTab = newTab;
}
+1 -1
View File
@@ -53,7 +53,7 @@ export async function loadCollections(activeId = null) {
try {
let items = await ApiClient.collections.getFullList(200, {
"sort": "+created",
"sort": "+name",
})
items = CommonHelper.sortCollections(items);
+1 -1
View File
@@ -981,7 +981,7 @@ export default class CommonHelper {
case "auth":
return "ri-group-line";
case "view":
return "ri-terminal-box-line";
return "ri-table-line";
default:
return "ri-folder-2-line";
}