-
-
-
{{ account.name }}
-
-
- {{ account.users && account.users.map(u => u.alias).join(', ') }}
-
+
@@ -35,10 +24,12 @@ import IAccount from '@/models/IAccount'
import IColor from '@/models/IColor'
import IUser from '@/models/IUser'
import FabButton from '@/components/FabButton.vue'
+import AccountCard from '@/components/AccountCard.vue'
@Component({
components: {
- 'fab-button': FabButton
+ 'fab-button': FabButton,
+ 'account-card': AccountCard
}
})
export default class AccountList extends Vue {
@@ -59,51 +50,14 @@ export default class AccountList extends Vue {
this.accounts = await accountService.getAll(this.archived)
this.fetched = true
}
-
- public getColor(color: string | null): any | null {
- if (!color) {
- return null
- }
- return {
- backgroundColor: color,
- color: this.findDarkValue(color)
- }
- }
-
- public findDarkValue(color: string): string | null {
- return findDarkValue(color)
- }
-
- public goToAccount(id: string): void {
- this.$router.push({ name: 'account', params: { id } })
- }
}
diff --git a/src/components/UserNew.vue b/src/components/UserNew.vue
index 6913186..30129ff 100644
--- a/src/components/UserNew.vue
+++ b/src/components/UserNew.vue
@@ -14,7 +14,7 @@
-
+
-
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 48eb822..400519e 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -18,6 +18,10 @@ html {
.app {
color: $main;
text-align: center;
+
+ .field-body {
+ flex-grow: 3;
+ }
}
nav {
diff --git a/src/utils/icons.ts b/src/utils/icons.ts
index 3259118..0aa7184 100644
--- a/src/utils/icons.ts
+++ b/src/utils/icons.ts
@@ -33,7 +33,8 @@ import {
faUsers,
faUserLock,
faTimes,
- faTheaterMasks
+ faTheaterMasks,
+ faTrash
} from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
@@ -64,6 +65,7 @@ library.add(
faPenSquare,
faPlus,
faTag,
+ faTrash,
faSignal,
faSyncAlt,
faUser,
diff --git a/src/views/accounts/AccountNew.vue b/src/views/accounts/AccountNew.vue
index 98f344a..bea88e1 100644
--- a/src/views/accounts/AccountNew.vue
+++ b/src/views/accounts/AccountNew.vue
@@ -3,7 +3,7 @@