diff --git a/web/satellite/src/components/accessGrants/AccessGrants.vue b/web/satellite/src/components/accessGrants/AccessGrants.vue index 003153f34..9dea80324 100644 --- a/web/satellite/src/components/accessGrants/AccessGrants.vue +++ b/web/satellite/src/components/accessGrants/AccessGrants.vue @@ -1,38 +1,242 @@ // Copyright (C) 2020 Storj Labs, Inc. // See LICENSE for copying information. + diff --git a/web/satellite/src/components/accessGrants/AccessGrantsItem.vue b/web/satellite/src/components/accessGrants/AccessGrantsItem.vue new file mode 100644 index 000000000..3e131c9f5 --- /dev/null +++ b/web/satellite/src/components/accessGrants/AccessGrantsItem.vue @@ -0,0 +1,115 @@ +// Copyright (C) 2020 Storj Labs, Inc. +// See LICENSE for copying information. + + + + + + diff --git a/web/satellite/src/components/accessGrants/EmptyState.vue b/web/satellite/src/components/accessGrants/EmptyState.vue index d9f92cd0f..1316489a8 100644 --- a/web/satellite/src/components/accessGrants/EmptyState.vue +++ b/web/satellite/src/components/accessGrants/EmptyState.vue @@ -2,19 +2,19 @@ // See LICENSE for copying information. diff --git a/web/satellite/src/components/accessGrants/ProgressBar.vue b/web/satellite/src/components/accessGrants/ProgressBar.vue index ec6d10659..ae36ab220 100644 --- a/web/satellite/src/components/accessGrants/ProgressBar.vue +++ b/web/satellite/src/components/accessGrants/ProgressBar.vue @@ -6,8 +6,8 @@ diff --git a/web/satellite/src/components/accessGrants/SortingHeader.vue b/web/satellite/src/components/accessGrants/SortingHeader.vue new file mode 100644 index 000000000..776106d05 --- /dev/null +++ b/web/satellite/src/components/accessGrants/SortingHeader.vue @@ -0,0 +1,116 @@ +// Copyright (C) 2020 Storj Labs, Inc. +// See LICENSE for copying information. + + + + + + diff --git a/web/satellite/src/views/DashboardArea.vue b/web/satellite/src/views/DashboardArea.vue index 30dfe6b9f..ef0144740 100644 --- a/web/satellite/src/views/DashboardArea.vue +++ b/web/satellite/src/views/DashboardArea.vue @@ -51,6 +51,7 @@ import NoPaywallInfoBar from '@/components/noPaywallInfoBar/NoPaywallInfoBar.vue import { ErrorUnauthorized } from '@/api/errors/ErrorUnauthorized'; import { RouteConfig } from '@/router'; +import { ACCESS_GRANTS_ACTIONS } from '@/store/modules/accessGrants'; import { API_KEYS_ACTIONS } from '@/store/modules/apiKeys'; import { BUCKET_ACTIONS } from '@/store/modules/buckets'; import { PAYMENTS_ACTIONS } from '@/store/modules/payments'; @@ -87,6 +88,8 @@ const { }, }) export default class DashboardArea extends Vue { + private FIRST_PAGE: number = 1; + /** * Holds router link to project dashboard page. */ @@ -176,7 +179,7 @@ export default class DashboardArea extends Vue { let apiKeysPage: ApiKeysPage = new ApiKeysPage(); try { - apiKeysPage = await this.$store.dispatch(API_KEYS_ACTIONS.FETCH, 1); + apiKeysPage = await this.$store.dispatch(API_KEYS_ACTIONS.FETCH, this.FIRST_PAGE); } catch (error) { await this.$notify.error(`Unable to fetch api keys. ${error.message}`); } @@ -193,9 +196,15 @@ export default class DashboardArea extends Vue { return; } + try { + await this.$store.dispatch(ACCESS_GRANTS_ACTIONS.FETCH, this.FIRST_PAGE); + } catch (error) { + await this.$notify.error(`Unable to fetch api keys. ${error.message}`); + } + await this.$store.dispatch(PM_ACTIONS.SET_SEARCH_QUERY, ''); try { - await this.$store.dispatch(PM_ACTIONS.FETCH, 1); + await this.$store.dispatch(PM_ACTIONS.FETCH, this.FIRST_PAGE); } catch (error) { await this.$notify.error(`Unable to fetch project members. ${error.message}`); } @@ -207,7 +216,7 @@ export default class DashboardArea extends Vue { } try { - await this.$store.dispatch(BUCKET_ACTIONS.FETCH, 1); + await this.$store.dispatch(BUCKET_ACTIONS.FETCH, this.FIRST_PAGE); } catch (error) { await this.$notify.error(`Unable to fetch buckets. ${error.message}`); } diff --git a/web/satellite/static/images/accessGrants/vector.png b/web/satellite/static/images/accessGrants/vector.png new file mode 100644 index 000000000..2e3663ceb Binary files /dev/null and b/web/satellite/static/images/accessGrants/vector.png differ