mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
fix(ux): allow print when saved
This commit is contained in:
parent
492aa53b68
commit
f3ca36cdd3
@ -34,21 +34,21 @@ export class ForbiddenError extends BaseError {
|
||||
}
|
||||
|
||||
export class DuplicateEntryError extends ValidationError {
|
||||
constructor(message: string, shouldStore: boolean = true) {
|
||||
constructor(message: string, shouldStore: boolean = false) {
|
||||
super(message, shouldStore);
|
||||
this.name = 'DuplicateEntryError';
|
||||
}
|
||||
}
|
||||
|
||||
export class LinkValidationError extends ValidationError {
|
||||
constructor(message: string, shouldStore: boolean = true) {
|
||||
constructor(message: string, shouldStore: boolean = false) {
|
||||
super(message, shouldStore);
|
||||
this.name = 'LinkValidationError';
|
||||
}
|
||||
}
|
||||
|
||||
export class MandatoryError extends ValidationError {
|
||||
constructor(message: string, shouldStore: boolean = true) {
|
||||
constructor(message: string, shouldStore: boolean = false) {
|
||||
super(message, shouldStore);
|
||||
this.name = 'MandatoryError';
|
||||
}
|
||||
|
@ -4,7 +4,7 @@
|
||||
<template #header v-if="doc">
|
||||
<StatusBadge :status="status" />
|
||||
<Button
|
||||
v-if="doc?.submitted"
|
||||
v-if="!doc.isCancelled && !doc.dirty"
|
||||
:icon="true"
|
||||
@click="routeTo(`/print/${doc.schemaName}/${doc.name}`)"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user