documents-list-item-actions

[
  {
    "evaluator": "document-is-favorite",
    "config": {
      "documents-list-item-actions": [
        {
          "key": "favorite",
          "iconClass": "fa fa-star",
          "action": "remove-from-favorites",
          "order": 9000
        }
      ]
    }
  },
  {
    "config": {
      "documents-list-item-actions": [
        {
          "key": "view-overview",
          "link": "/#/projects/{{project._doc}}/documents/{{document._doc}}/overview",
          "iconClass": "fa fa-info-circle",
          "order": 1000
        }
      ]
    }
  },
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "document-is-file"
      },
      {
        "evaluator": "document-is-locked"
      }
    ],
    "config": {
      "documents-list-item-actions": [
        {
          "key": "locked",
          "iconClass": "fa fa-lock",
          "action": "unlock-document",
          "order": 8000
        }
      ]
    }
  },
  {
    "evaluator": "or",
    "condition": [
      {
        "evaluator": "current-user-has-authority",
        "condition": "manager"
      },
      {
        "evaluator": "current-user-is-admin"
      }
    ],
    "config": {
      "documents-list-item-actions": [
        {
          "key": "view-json",
          "link": "/#/projects/{{project._doc}}/documents/{{document._doc}}/json",
          "iconClass": "fa fa-code",
          "order": 2000
        }
      ]
    }
  },
  {
    "evaluator": "not",
    "condition": {
      "evaluator": "document-is-favorite"
    },
    "config": {
      "documents-list-item-actions": [
        {
          "key": "favorite",
          "iconClass": "fa fa-star-o",
          "action": "add-to-favorites",
          "order": 9000
        }
      ]
    }
  },
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "document-is-file"
      },
      {
        "evaluator": "not",
        "condition": {
          "evaluator": "document-is-locked"
        }
      }
    ],
    "config": {
      "documents-list-item-actions": [
        {
          "key": "locked",
          "iconClass": "fa fa-unlock",
          "action": "lock-document",
          "order": 8000
        }
      ]
    }
  }
]