mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 11:50:31 +00:00
Custom fields feature.
This commit is contained in:
38
client/src/utils.js
Normal file
38
client/src/utils.js
Normal file
@@ -0,0 +1,38 @@
|
||||
const title = 'Ratteb';
|
||||
|
||||
export const getPageTitle = (pageTitle) => {
|
||||
if (pageTitle) {
|
||||
return `${pageTitle} - ${title}`;
|
||||
}
|
||||
return title;
|
||||
}
|
||||
|
||||
// const clipboardSuccess = () => {
|
||||
// Vue.prototype.$message({
|
||||
// message: 'Copy successfully',
|
||||
// type: 'success',
|
||||
// duration: 1500,
|
||||
// });
|
||||
// };
|
||||
|
||||
// const clipboardError = () => {
|
||||
// Vue.prototype.$message({
|
||||
// message: 'Copy failed',
|
||||
// type: 'error',
|
||||
// });
|
||||
// };
|
||||
|
||||
export const handleClipboard = (text, event) => {
|
||||
// const clipboard = new Clipboard(event.target, {
|
||||
// text: () => text
|
||||
// })
|
||||
// clipboard.on('success', () => {
|
||||
// clipboardSuccess()
|
||||
// clipboard.destroy()
|
||||
// })
|
||||
// clipboard.on('error', () => {
|
||||
// clipboardError()
|
||||
// clipboard.destroy()
|
||||
// })
|
||||
// clipboard.onClick(event)
|
||||
}
|
||||
Reference in New Issue
Block a user