diff --git a/resources/scripts/components/server/databases/DatabasesContainer.tsx b/resources/scripts/components/server/databases/DatabasesContainer.tsx
index 30136423f..a5335f5c0 100644
--- a/resources/scripts/components/server/databases/DatabasesContainer.tsx
+++ b/resources/scripts/components/server/databases/DatabasesContainer.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
-import getServerDatabases, { ServerDatabase } from '@/api/server/getServerDatabases';
+import getServerDatabases from '@/api/server/getServerDatabases';
import { ServerContext } from '@/state/server';
import { Actions, useStoreActions } from 'easy-peasy';
import { ApplicationStore } from '@/state';
@@ -9,6 +9,7 @@ import DatabaseRow from '@/components/server/databases/DatabaseRow';
import Spinner from '@/components/elements/Spinner';
import { CSSTransition } from 'react-transition-group';
import CreateDatabaseButton from '@/components/server/databases/CreateDatabaseButton';
+import Can from '@/components/elements/Can';
export default () => {
const [ loading, setLoading ] = useState(true);
@@ -41,7 +42,7 @@ export default () => {
:
-
+ <>
{databases.length > 0 ?
databases.map((database, index) => (
{
:
{server.featureLimits.databases > 0 ?
- `It looks like you have no databases. Click the button below to create one now.`
+ `It looks like you have no databases.`
:
`Databases cannot be created for this server.`
}
+
>
}
diff --git a/resources/scripts/components/server/schedules/ScheduleEditContainer.tsx b/resources/scripts/components/server/schedules/ScheduleEditContainer.tsx
index 77cfb9ee3..e601e8250 100644
--- a/resources/scripts/components/server/schedules/ScheduleEditContainer.tsx
+++ b/resources/scripts/components/server/schedules/ScheduleEditContainer.tsx
@@ -13,6 +13,7 @@ import ScheduleTaskRow from '@/components/server/schedules/ScheduleTaskRow';
import EditScheduleModal from '@/components/server/schedules/EditScheduleModal';
import NewTaskButton from '@/components/server/schedules/NewTaskButton';
import DeleteScheduleButton from '@/components/server/schedules/DeleteScheduleButton';
+import Can from '@/components/elements/Can';
interface Params {
id: string;
@@ -93,24 +94,27 @@ export default ({ match, history, location: { state } }: RouteComponentProps
:
- There are no tasks configured for this schedule. Consider adding a new one using the
- button below.
+ There are no tasks configured for this schedule.