Skip to content

Commit

Permalink
Replace custom input field with NcTextField
Browse files Browse the repository at this point in the history
Signed-off-by: julia.kirschenheuter <[email protected]>
  • Loading branch information
JuliaKirschenheuter committed Aug 29, 2023
1 parent ea92fb9 commit e566068
Show file tree
Hide file tree
Showing 79 changed files with 11 additions and 3,585 deletions.
13 changes: 8 additions & 5 deletions apps/files_sharing/src/components/SelectShareFolderDialogue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@

<template>
<div class="share-folder">
<span>{{ t('files_sharing', 'Set default folder for accepted shares') }} </span>

<!-- Folder picking form -->
<form class="share-folder__form" @reset.prevent.stop="resetFolder">
<input class="share-folder__picker"
<NcTextField class="share-folder__picker"
type="text"
:label="t('files_sharing', 'Set default folder for accepted shares')"
:placeholder="readableDirectory"
@click.prevent="pickFolder">
@click.prevent="pickFolder" />

<!-- Show reset button if folder is different -->
<input v-if="readableDirectory !== defaultDirectory"
Expand All @@ -44,12 +43,16 @@ import path from 'path'
import { generateUrl } from '@nextcloud/router'
import { getFilePickerBuilder, showError } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'

const defaultDirectory = loadState('files_sharing', 'default_share_folder', '/')
const directory = loadState('files_sharing', 'share_folder', defaultDirectory)

export default {
name: 'SelectShareFolderDialogue',
components: {
NcTextField,
},
data() {
return {
directory,
Expand Down Expand Up @@ -109,7 +112,7 @@ export default {

&__picker {
cursor: pointer;
min-width: 266px;
max-width: 300px;
}

// Make the reset button looks like text
Expand Down
2 changes: 0 additions & 2 deletions dist/2246-2246.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/2246-2246.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/2323-2323.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/2323-2323.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion dist/2323-2323.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/2798-2798.js

This file was deleted.

168 changes: 0 additions & 168 deletions dist/2798-2798.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion dist/2798-2798.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/614-614.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/614-614.js.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/7816-7816.js

This file was deleted.

21 changes: 0 additions & 21 deletions dist/7816-7816.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion dist/7816-7816.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions dist/9223-9223.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/9223-9223.js.map

This file was deleted.

57 changes: 0 additions & 57 deletions dist/comments-comments-app.js.LICENSE.txt

This file was deleted.

23 changes: 0 additions & 23 deletions dist/comments-comments-tab.js.LICENSE.txt

This file was deleted.

45 changes: 0 additions & 45 deletions dist/comments-comments.js.LICENSE.txt

This file was deleted.

Loading

0 comments on commit e566068

Please sign in to comment.