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

add project option fast edition mode & remove duplicat code for message display

parent f9360ef9
No related branches found
No related tags found
1 merge request!438REDMINE_ISSUE-14072|Mode édition rapide des signalements
......@@ -67,7 +67,7 @@
id="subscribe-button"
class="ui button button-hover-green tiny-margin"
data-tooltip="S'abonner au projet"
data-position="top center"
data-position="bottom center"
data-variation="mini"
@click="OPEN_PROJECT_MODAL('subscribe')"
>
......@@ -85,7 +85,7 @@
:to="{ name: 'project_edit', params: { slug } }"
class="ui button button-hover-orange tiny-margin"
data-tooltip="Modifier le projet"
data-position="top center"
data-position="bottom center"
data-variation="mini"
>
<i
......@@ -98,7 +98,7 @@
id="delete-button"
class="ui button button-hover-red tiny-margin"
data-tooltip="Supprimer le projet"
data-position="top center"
data-position="bottom right"
data-variation="mini"
@click="OPEN_PROJECT_MODAL('deleteProject')"
>
......
......@@ -21,28 +21,6 @@
</p>
</div>
</div>
<div
v-if="infoMessage"
id="message_info"
class="fullwidth"
>
<div
class="ui info message"
style="text-align: left"
>
<div class="header">
<i
class="info circle icon"
aria-hidden="true"
/> Informations
</div>
<ul class="list">
{{
infoMessage
}}
</ul>
</div>
</div>
<ProjectHeader
:arrays-offline="arraysOffline"
......@@ -359,13 +337,14 @@ export default {
this.is_suscriber = data.is_suscriber;
this.CLOSE_PROJECT_MODAL();
if (this.is_suscriber) {
this.infoMessage =
'Vous êtes maintenant abonné aux notifications de ce projet.';
this.DISPLAY_MESSAGE({
comment: 'Vous êtes maintenant abonné aux notifications de ce projet.', level: 'positive'
});
} else {
this.infoMessage =
'Vous ne recevrez plus les notifications de ce projet.';
this.DISPLAY_MESSAGE({
comment: 'Vous ne recevrez plus les notifications de ce projet.', level: 'negative'
});
}
setTimeout(() => (this.infoMessage = ''), 3000);
});
},
......
......@@ -195,6 +195,19 @@
</div>
</div>
<div class="field">
<div class="ui checkbox">
<input
id="fast_edition_mode"
v-model="form.fast_edition_mode"
class="hidden"
type="checkbox"
name="fast_edition_mode"
>
<label for="fast_edition_mode">Mode d'édition rapide de signalements</label>
</div>
</div>
<div class="ui divider" />
<button
......@@ -261,6 +274,7 @@ export default {
nb_contributors: 0,
is_project_type: false,
generate_share_link: false,
fast_edition_mode: false,
},
thumbnailFileSrc: '',
};
......@@ -512,6 +526,7 @@ export default {
delete_feature: this.form.delete_feature,
is_project_type: this.form.is_project_type,
generate_share_link: this.form.generate_share_link,
fast_edition_mode: this.form.fast_edition_mode,
moderation: this.form.moderation,
};
let url = `${this.$store.state.configuration.VUE_APP_DJANGO_API_BASE}projects/`;
......
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