Initial work to move users view to vue
This commit is contained in:
@@ -14,6 +14,7 @@ import ServicesView from './views/ServicesView.vue';
|
||||
import SettingsView from './views/SettingsView.vue';
|
||||
import SupportView from './views/SupportView.vue';
|
||||
import UserDirectoryView from './views/UserDirectoryView.vue';
|
||||
import UsersView from './views/UsersView.vue';
|
||||
import VolumesView from './views/VolumesView.vue';
|
||||
|
||||
const VIEWS = {
|
||||
@@ -29,6 +30,7 @@ const VIEWS = {
|
||||
SETTINGS: 'settings',
|
||||
SUPPORT: 'support',
|
||||
USER_DIRECTORY: 'user-directory',
|
||||
USERS: 'users',
|
||||
VOLUMES: 'volumes',
|
||||
};
|
||||
|
||||
@@ -59,8 +61,10 @@ function onHashChange() {
|
||||
view.value = VIEWS.SETTINGS;
|
||||
} else if (v === VIEWS.SUPPORT) {
|
||||
view.value = VIEWS.SUPPORT;
|
||||
} else if (v === VIEWS.USER_DIRECTORY) {
|
||||
} else if (v === VIEWS.USER_DIRECTORY) {
|
||||
view.value = VIEWS.USER_DIRECTORY;
|
||||
} else if (v === VIEWS.USERS) {
|
||||
view.value = VIEWS.USERS;
|
||||
} else if (v === VIEWS.VOLUMES) {
|
||||
view.value = VIEWS.VOLUMES;
|
||||
} else {
|
||||
@@ -99,6 +103,7 @@ onMounted(async () => {
|
||||
<SettingsView v-else-if="view === VIEWS.SETTINGS" />
|
||||
<SupportView v-else-if="view === VIEWS.SUPPORT" />
|
||||
<UserDirectoryView v-else-if="view === VIEWS.USER_DIRECTORY" />
|
||||
<UsersView v-else-if="view === VIEWS.USERS" />
|
||||
<VolumesView v-else-if="view === VIEWS.VOLUMES" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user