CustomizationsModal.vue - add a way for users to customize css of their invoices and store it per team,

fix print styles for invoices,
add keys to translations with default English values
This commit is contained in:
Marek Fraczyk
2021-05-18 15:57:48 +03:00
parent 8846d52faf
commit 0f9f9d84a5
16 changed files with 173 additions and 10 deletions

View File

@ -2,6 +2,18 @@ import { Model } from '@vuex-orm/core';
import { uuidv4 } from '@/utils/helpers';
import TeamField from '@/store/models/team-field';
const customCSS = `
/* @import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300&display=swap');
.invoice-box:after {
background: linear-gradient(to bottom, #1C7CE0, #150051);
}
.invoice-box {
font-family: 'Work Sans', sans-serif;
} */
`;
export default class Team extends Model {
// This is the name used as module name of the Vuex Store.
static entity = 'teams';
@ -25,6 +37,7 @@ export default class Team extends Model {
updated_at: this.attr(''),
created_at: this.attr(''),
logo_url: this.attr(''),
custom_css: this.attr(customCSS),
};
}
}