Skip to content

[Feature Request] VConfirmEdit - expose dirty/pristine status #19747

Closed
YoutacRandS-VA/desec-stack
#2
@daniser

Description

Problem to solve

Ability to check if underlying model have changed or not.
For example, to hide action buttons:

<template>
  <v-confirm-edit v-model="model">
    <template #default="{ model: proxyModel, actions, isPristine }">
      <v-card>
        <v-card-text>
          <v-text-field v-model="proxyModel.value" />
        </v-card-text>
        <v-card-actions>
          <component v-if="!isPristine" :is="actions" />
        </v-card-actions>
      </v-card>
    </template>
  </v-confirm-edit>
</template>

Proposed solution

Expose isPristine variable from component.

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions