Skip to content
Snippets Groups Projects
Commit 89ba4956 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

add save button in fast edition mode

parent f92679c7
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,20 @@ ...@@ -41,6 +41,20 @@
/> />
</button> </button>
<button
v-if="fastEditionMode"
id="previous-feature"
:class="['ui button button-hover-orange tiny-margin', { disabled: false }]"
data-tooltip="Enregistrer les modifications"
data-position="bottom center"
@click="toFeature('previous')"
>
<i
class="save fitted icon"
aria-hidden="true"
/>
</button>
<router-link <router-link
v-if="permissions && permissions.can_create_feature" v-if="permissions && permissions.can_create_feature"
id="add-feature" id="add-feature"
...@@ -128,6 +142,10 @@ export default { ...@@ -128,6 +142,10 @@ export default {
type: Object, type: Object,
default: () => {}, default: () => {},
}, },
fastEditionMode: {
type: Boolean,
default: false,
}
}, },
computed: { computed: {
......
...@@ -7,9 +7,11 @@ ...@@ -7,9 +7,11 @@
<div class="row"> <div class="row">
<div class="sixteen wide column"> <div class="sixteen wide column">
<FeatureHeader <FeatureHeader
v-if="project"
:features-count="featuresCount" :features-count="featuresCount"
:slug-signal="slugSignal" :slug-signal="slugSignal"
:feature-type="featureType" :feature-type="featureType"
:fast-edition-mode="project.fast_edition_mode"
@setIsCancelling="isCanceling = true" @setIsCancelling="isCanceling = true"
@tofeature="pushNgo" @tofeature="pushNgo"
/> />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment