mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 01:53:51 +00:00
Added support for title field in short URL table
This commit is contained in:
7
src/utils/helpers/features.ts
Normal file
7
src/utils/helpers/features.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { isReachableServer, SelectedServer } from '../../servers/data';
|
||||
import { versionMatch, Versions } from './version';
|
||||
|
||||
const serverMatchesVersions = (versions: Versions) => (selectedServer: SelectedServer): boolean =>
|
||||
isReachableServer(selectedServer) && versionMatch(selectedServer.version, versions);
|
||||
|
||||
export const titleIsSupported = serverMatchesVersions({ minVersion: '2.6.0' });
|
||||
Reference in New Issue
Block a user