Skip to content

Commit 97e9706

Browse files
committed
add close button
Signed-off-by: GretaD <gretadoci@gmail.com>
1 parent 3274c15 commit 97e9706

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

apps/settings/src/components/UserList.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@
152152
class="button primary icon-checkmark-white has-tooltip"
153153
type="submit"
154154
value="">
155+
<div class="closeButton">
156+
<Actions>
157+
<ActionButton icon="icon-close" @click="onClose">
158+
{{ t('settings', 'Close') }}
159+
</ActionButton>
160+
</Actions>
161+
</div>
155162
</div>
156163
</form>
157164
<div id="grid-header"
@@ -235,7 +242,7 @@
235242

236243
<script>
237244
import userRow from './UserList/UserRow'
238-
import { Multiselect } from 'nextcloud-vue'
245+
import { Multiselect, Actions, ActionButton } from 'nextcloud-vue'
239246
import InfiniteLoading from 'vue-infinite-loading'
240247
import Vue from 'vue'
241248
@@ -266,7 +273,9 @@ export default {
266273
components: {
267274
userRow,
268275
Multiselect,
269-
InfiniteLoading
276+
InfiniteLoading,
277+
Actions,
278+
ActionButton
270279
},
271280
props: {
272281
users: {
@@ -559,6 +568,9 @@ export default {
559568
this.$router.push({ name: 'users' })
560569
this.$refs.infiniteLoading.stateChanger.reset()
561570
}
571+
},
572+
onClose() {
573+
this.showConfig.showNewUserForm = false
562574
}
563575
}
564576
}

0 commit comments

Comments
 (0)