forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:metabase/metabase into pulse-cond…
…itional-formatting
- Loading branch information
Showing
171 changed files
with
3,407 additions
and
2,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
/* @flow weak */ | ||
|
||
import _ from "underscore"; | ||
import { createSelector } from "reselect"; | ||
|
||
// Database List | ||
export const databases = state => state.admin.databases.databases; | ||
|
||
export const getDatabasesSorted = createSelector([databases], databases => | ||
_.sortBy(databases, "name"), | ||
); | ||
|
||
export const hasSampleDataset = createSelector([databases], databases => | ||
_.some(databases, d => d.is_sample), | ||
); | ||
|
||
// Database Edit | ||
export const getEditingDatabase = state => | ||
state.admin.databases.editingDatabase; | ||
export const getFormState = state => state.admin.databases.formState; | ||
export const getDatabaseCreationStep = state => | ||
state.admin.databases.databaseCreationStep; | ||
|
||
// Database List | ||
export const getDeletes = state => state.admin.databases.deletes; | ||
export const getDeletionError = state => state.admin.databases.deletionError; |
Oops, something went wrong.