diff --git a/client/components/Icon/error.vue b/client/components/Icon/error.vue new file mode 100644 index 0000000..cfa0777 --- /dev/null +++ b/client/components/Icon/error.vue @@ -0,0 +1,16 @@ + + + \ No newline at end of file diff --git a/client/components/SideBar/Menu.vue b/client/components/SideBar/Menu.vue index 448cd80..fd62a6a 100644 --- a/client/components/SideBar/Menu.vue +++ b/client/components/SideBar/Menu.vue @@ -39,6 +39,7 @@ :crate-id="crate.id" :selected="currentCrate === crate.id && !currentPage" :editable="crate.id !== undefined && crate.endpoint === undefined" + :error="crate.deleted" @click.native="changeCrate(crate)" @shortkey.native="changeCrate(crate)" /> @@ -58,6 +59,7 @@ :crate-id="crate.id" :selected="currentCrate === crate.id" :editable="crate.id && !crate.endpoint" + :error="crate.deleted" @click.native="changeCrate(crate)" @shortkey.native="changeCrate(crate)" /> diff --git a/client/components/SideBar/MenuItem.vue b/client/components/SideBar/MenuItem.vue index f7d1103..0dc5a25 100644 --- a/client/components/SideBar/MenuItem.vue +++ b/client/components/SideBar/MenuItem.vue @@ -15,8 +15,8 @@ {{ name }} -
- {{ count }} +
+
@@ -38,6 +38,10 @@ export default { type: Boolean, default: false }, + error: { + type: Boolean, + default: false + }, count: { type: Number, default: undefined @@ -171,14 +175,8 @@ export default { width: 25px; } - .count { + .error { margin-left: auto; - display: flex; - justify-content: center; - align-items: center; - - & span { - font-size: 0.8rem; - } + color: var(--red); } \ No newline at end of file diff --git a/client/pages/crate/_.vue b/client/pages/crate/_.vue index 6d9ddfc..66c1d99 100644 --- a/client/pages/crate/_.vue +++ b/client/pages/crate/_.vue @@ -33,7 +33,15 @@
-