mirror of
https://github.com/koel/koel
synced 2024-11-28 15:00:42 +00:00
Users screen button fix
This commit is contained in:
parent
edfc1750f0
commit
bca0e690f6
1 changed files with 12 additions and 2 deletions
|
@ -1,9 +1,16 @@
|
|||
<template>
|
||||
<section id="usersWrapper">
|
||||
<h1 class="heading">
|
||||
<span>Users</span>
|
||||
<span>Users
|
||||
<i class="fa fa-chevron-down toggler"
|
||||
v-show="isPhone && !showingControls"
|
||||
@click="showingControls = true"></i>
|
||||
<i class="fa fa-chevron-up toggler"
|
||||
v-show="isPhone && showingControls"
|
||||
@click.prevent="showingControls = false"></i>
|
||||
</span>
|
||||
|
||||
<div class="buttons">
|
||||
<div class="buttons" v-show="!isPhone || showingControls">
|
||||
<button class="btn-create" @click="creating = !creating">
|
||||
<i class="fa fa-plus"></i>
|
||||
Add</button>
|
||||
|
@ -91,6 +98,7 @@
|
|||
|
||||
<script>
|
||||
import _ from 'lodash';
|
||||
import isMobile from 'ismobilejs';
|
||||
|
||||
import userStore from '../../../stores/user';
|
||||
|
||||
|
@ -98,6 +106,8 @@
|
|||
data() {
|
||||
return {
|
||||
state: userStore.state,
|
||||
isPhone: isMobile.phone,
|
||||
showingControls: false,
|
||||
creating: false,
|
||||
newUser: _.clone(userStore.stub),
|
||||
editedUser: _.clone(userStore.stub),
|
||||
|
|
Loading…
Reference in a new issue