File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
packages/vue/src/courses/piano/utility Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 1515 <div class =" d-flex justify-space-between mt-3" >
1616 <v-btn color =" primary" @click =" playSound" >Test midi output</v-btn >
1717 <v-btn
18- v-if =" configChanged"
1918 :loading =" updatePending"
20- :disabled =" !configChanged"
19+ :disabled =" !configChanged && !updatePending "
2120 color =" info"
21+ class =" save-button"
2222 @click =" saveSettings"
2323 >
24- < span v-if = " configChanged " > Save these settings</ span >< span v-else >Settings saved</ span >
24+ Save these settings
2525 </v-btn >
2626 </div >
2727 </v-form >
@@ -379,3 +379,14 @@ export default defineComponent({
379379 },
380380});
381381 </script >
382+
383+ <style scoped>
384+ .save-button {
385+ transition : opacity 0.5s ease-out ;
386+ opacity : 1 ;
387+ }
388+
389+ .save-button.v-btn--disabled :not (.v-btn--loading ) {
390+ opacity : 0 ;
391+ }
392+ </style >
You can’t perform that action at this time.
0 commit comments