Replies: 1 comment
-
EDIT: After my first test, it seems I forgot something, because it doesn't work, and I don't know why. First, for my tests, I totally changed the file EditionModal.vue. This worked perfectly: clicking on Editions or on [E], I could change the icon style. Then, I tried to rename the file into "StyleChoiceModal.vue", and to make all changes I talked about in my previous message. But this time, with a new file, it didn't work.
Did I forget something in this file? Or did I forget something else somewhere else? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am trying to add an option in my local copy, and I almost did it.
This option I want is to change icons' style (from 2 possible styles). What I have for now is an option in the menu, which gives a simple text prompt. If the inputted text is the name of one of the two styles, then all works exactly as I want.
Obviously, this isn't a good solution. What I'd like to have, instead, is a Window with two buttons. One button for select the first style, one button for select the other one (and maybe a top-right close to simply close the window).
I think I basically know how it should work, but I'd like to have confirmation.
src\components\modals
, I must create a new VUE file, specifically for this window. This file will contain a function withthis.$store.commit("setStyle", style);
. I call this file, for example StyleChoiceModal.vue. (This will be the more complex step, but I think I can do it by inspiring from the other modals).index.js
, in the modals, I addstyleChoice: false,
@click="toggleModal('styleChoice')
And I think that's all. Did I correctly understand how it works?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions