condition: (core, doc, frm) => {
{ type: "text", text: "Assign Doc", class: "title" },
onclick: (core, doc) => {
this.openAssignDocDialog();
init: async function(core: Renovation, doc) {
const r = await core.model.getUsersAssignedToDoc({
if (r.success && r.data && r.data.length) {
class: "text-center mt-1 h6 uppercase"
link: (user: GetUsersAssignedToDocResponse) => [
class: "flex-grow-1 text-secondary small",
onclick: (core: Renovation, item: GetUsersAssignedToDocResponse) => {
title: "Unassign Document",
message: `Are you sure to unassign ${item.assignedTo} from the document ?`,
this.unassignDocument(item.assignedTo);