Skip to content

Commit

Permalink
Merge pull request #6255 from nextcloud/fix/settings/import-button-de…
Browse files Browse the repository at this point in the history
…sign
  • Loading branch information
st3iny authored Aug 13, 2024
2 parents 74411f8 + 911d5b9 commit 0d63e67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
11 changes: 0 additions & 11 deletions css/app-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@
}
}

&__import-button {
display: block;
text-align: center;
background-position-x: 8px;
position: relative;

.material-design-icon {
position: absolute;
}
}

&--slotDuration,
&--defaultReminder {
display: table;
Expand Down
12 changes: 9 additions & 3 deletions src/components/AppNavigation/Settings/SettingsImportSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@
:max="total" />
</li>
<li v-else class="settings-fieldset-interior-item">
<label class="settings-fieldset-interior-item__import-button button icon" :for="inputUid">
<Upload :size="20" decorative />
<NcButton :disabled="disableImport"
:wide="true"
@click="$refs.importInput.click()">
<template #icon>
<Upload :size="20" />
</template>
{{ $n('calendar', 'Import calendar', 'Import calendars', 1) }}
</label>
</NcButton>
<input :id="inputUid"
ref="importInput"
class="hidden"
Expand Down Expand Up @@ -52,12 +56,14 @@ import useImportFilesStore from '../../../store/importFiles.js'
import useCalendarsStore from '../../../store/calendars.js'
import useCalendarObjectsStore from '../../../store/calendarObjects.js'
import { mapStores, mapState } from 'pinia'
import { NcButton } from '@nextcloud/vue'
export default {
name: 'SettingsImportSection',
components: {
ImportScreen,
Upload,
NcButton,
},
props: {
isDisabled: {
Expand Down

0 comments on commit 0d63e67

Please sign in to comment.