Fix discoverability of 'Share link' functionality

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2020-06-12 03:21:18 +02:00 committed by Jonas Rittershofer
parent 53df90f229
commit a731132f46

View file

@ -25,13 +25,10 @@
v-show="opened" v-show="opened"
:title="form.title" :title="form.title"
@close="onClose"> @close="onClose">
<template #secondary-actions> <button class="copyShareLink" @click="copyShareLink">
<ActionLink icon="icon-clippy" <span class="icon-clippy" role="img" />
:href="shareLink" {{ t('forms', 'Copy share link') }}
@click.stop.prevent="copyShareLink"> </button>
{{ t('forms', 'Copy share link') }}
</ActionLink>
</template>
<h3>{{ t('forms', 'Sharing') }}</h3> <h3>{{ t('forms', 'Sharing') }}</h3>
<ul> <ul>
@ -44,7 +41,7 @@
@change="onAccessChange"> @change="onAccessChange">
<label for="public"> <label for="public">
<span class="icon-public"> <span class="icon-public">
{{ t('forms', 'Share link') }} {{ t('forms', 'Share via link') }}
</span> </span>
</label> </label>
</li> </li>
@ -85,7 +82,6 @@
<li> <li>
<input id="isAnonymous" <input id="isAnonymous"
v-model="form.isAnonymous" v-model="form.isAnonymous"
type="checkbox" type="checkbox"
class="checkbox" class="checkbox"
@change="onAnonChange"> @change="onAnonChange">
@ -135,7 +131,6 @@ import { generateUrl } from '@nextcloud/router'
import { getLocale, getDayNamesShort, getMonthNamesShort } from '@nextcloud/l10n' import { getLocale, getDayNamesShort, getMonthNamesShort } from '@nextcloud/l10n'
import { subscribe, unsubscribe } from '@nextcloud/event-bus' import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { showError, showSuccess } from '@nextcloud/dialogs' import { showError, showSuccess } from '@nextcloud/dialogs'
import ActionLink from '@nextcloud/vue/dist/Components/ActionLink'
import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar' import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar'
import DatetimePicker from '@nextcloud/vue/dist/Components/DatetimePicker' import DatetimePicker from '@nextcloud/vue/dist/Components/DatetimePicker'
import moment from '@nextcloud/moment' import moment from '@nextcloud/moment'
@ -147,7 +142,6 @@ export default {
name: 'Sidebar', name: 'Sidebar',
components: { components: {
ActionLink,
AppSidebar, AppSidebar,
DatetimePicker, DatetimePicker,
ShareDiv, ShareDiv,
@ -350,7 +344,12 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.copyShareLink {
margin: 8px;
}
h3 { h3 {
font-weight: bold;
margin-left: 8px; margin-left: 8px;
margin-bottom: 8px; margin-bottom: 8px;
} }