Skip to content

Commit

Permalink
Move Save button to v-card-actions in ConnectionForm
Browse files Browse the repository at this point in the history
  • Loading branch information
mimischi committed Feb 23, 2019
1 parent 14b8238 commit 72e27c7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/ConnectionForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ the-card(
:backLink="{ name: 'connectionList' }"
)

template(v-slot:rightSide)
//- template(v-slot:rightSide)
portal-target(name="save-button")
connection-model(:id="id")
v-card(slot-scope="{ data: connection, create, update, swap, valid }")

portal(to="save-button")
//- portal(to="save-button")
v-btn(
flat
@click="submit({ create: create, update: update })"
Expand Down Expand Up @@ -55,6 +55,19 @@ the-card(
label="Mark connection as favorite?"
:prepend-icon="connection.isFavorite ? 'star' : 'star_border'"
) Favorite

v-card-actions
v-btn(
flat
@click="$router.push({ name: 'connectionList' })"
) Cancel
v-spacer
v-btn(
color="primary"
@click="submit({ create: create, update: update })"
:disabled="!valid"
) Save

</template>

<script>
Expand Down

0 comments on commit 72e27c7

Please sign in to comment.