Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed May 4, 2023
1 parent 585107b commit 70c5bdd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CommonUI/src/Components/ModelTable/ModelTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -804,12 +804,12 @@ const ModelTable: Function = <TBaseModel extends BaseModel>(
}
}



if (permissions) {
if (props.isViewable && model.hasReadPermissions(permissions)) {
actionsSchema.push({
title: props.viewButtonText || `View ${props.singularName || model.singularName}`,
title:
props.viewButtonText ||
`View ${props.singularName || model.singularName}`,
buttonStyleType: ButtonStyleType.NORMAL,
onClick: async (
item: JSONObject,
Expand Down
1 change: 0 additions & 1 deletion Dashboard/src/Components/Incident/IncidentsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ const IncidentsTable: FunctionComponent<ComponentProps> = (
showViewIdButton={true}
viewPageRoute={props.viewPageRoute}
columns={[

{
field: {
title: true,
Expand Down
1 change: 0 additions & 1 deletion Dashboard/src/Pages/Monitor/View/Incidents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ const MonitorIncidents: FunctionComponent<PageComponentProps> = (
showViewIdButton={true}
viewPageRoute={Navigation.getCurrentRoute()}
columns={[

{
field: {
title: true,
Expand Down
1 change: 0 additions & 1 deletion Dashboard/src/Pages/Settings/Domains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ const Domains: FunctionComponent<PageComponentProps> = (
</div>
}
submitButtonText={'Verify Domain'}

onClose={() => {
setShowVerificationModal(false);
setError('');
Expand Down
1 change: 0 additions & 1 deletion Dashboard/src/Pages/Settings/Labels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const Labels: FunctionComponent<PageComponentProps> = (
}}
showViewIdButton={true}
columns={[

{
field: {
name: true,
Expand Down

0 comments on commit 70c5bdd

Please sign in to comment.