Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## [Unreleased]

### Added
- Save button at the bottom of the edit page
[#818](https://github.com/nextcloud/cookbook/pull/818) @christianlupus

### Fixed
- Usage of PAT for deployment action
[#815](https://github.com/nextcloud/cookbook/pull/815) @christianlupus
Expand Down
19 changes: 19 additions & 0 deletions src/components/RecipeEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,18 @@
:show-step-number="true"
:reference-popup-enabled="true"
/>
<div class="cookbook-footer">
<button class="button" @click="save()">
<span
:class="
$store.state.savingRecipe
? 'icon-loading-small'
: 'icon-checkmark'
"
></span>
{{ t("cookbook", "Save changes") }}
</button>
</div>
<edit-multiselect-popup
ref="referencesPopup"
class="references-popup"
Expand All @@ -113,6 +125,7 @@ import EditMultiselect from "./EditMultiselect.vue"
import EditMultiselectInputGroup from "./EditMultiselectInputGroup.vue"
import EditMultiselectPopup from "./EditMultiselectPopup.vue"
import EditTimeField from "./EditTimeField.vue"
import ActionButton from "@nextcloud/vue/dist/Components/ActionButton"

export default {
name: "RecipeEdit",
Expand All @@ -124,6 +137,7 @@ export default {
EditTimeField,
EditMultiselectInputGroup,
EditMultiselectPopup,
ActionButton,
},
// We can check if the user has browsed from the same recipe's view to this
// edit and save some time by not reloading the recipe data, leading to a
Expand Down Expand Up @@ -747,4 +761,9 @@ form fieldset ul label input[type="checkbox"] {
.references-popup.visible {
display: block;
}

.cookbook-footer {
margin-top: 3.5em;
text-align: end;
}
</style>