add follower

This commit is contained in:
2023-04-12 09:29:41 +08:00
parent cc3d11f617
commit 9754bd8fbe
6 changed files with 139 additions and 30 deletions

View File

@ -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'))
})