add follower
This commit is contained in:
@ -10,6 +10,7 @@ import { createBox } from "./lib";
|
||||
import { createPopup, showAlert, showConfirm } from "../../ui/popup";
|
||||
import Grid from "../../ui/grid";
|
||||
import Contact from "./contact";
|
||||
import Follower from "./follower";
|
||||
|
||||
class NoteCol extends Grid.GridColumn {
|
||||
static create() {
|
||||
@ -605,7 +606,19 @@ class CustomerCommunication {
|
||||
}
|
||||
});
|
||||
add.show(container);
|
||||
*/
|
||||
*/
|
||||
if (typeof this.#option.onInitFollower === 'function') {
|
||||
this.#option.onInitFollower().then(data => {
|
||||
if (typeof data === 'string') {
|
||||
showAlert(r('customerRecord', 'Customer Record'), data, 'warn');
|
||||
return;
|
||||
}
|
||||
const add = new Follower({
|
||||
followers: data
|
||||
});
|
||||
add.show(container);
|
||||
})
|
||||
}
|
||||
});
|
||||
setTooltip(button, r('addFollower', 'Add Follower'))
|
||||
})
|
||||
|
Reference in New Issue
Block a user