Fixed: Don't allow profile delete if in use by import list

Fixes #280
This commit is contained in:
Qstick
2018-04-07 22:28:16 -04:00
parent e5c5a3f91c
commit fde276f000
10 changed files with 50 additions and 18 deletions
@@ -107,7 +107,7 @@ function EditMetadataProfileModalContent(props) {
id &&
<div
className={styles.deleteButtonContainer}
title={isInUse ? 'Can\'t delete a metadata profile that is attached to a artist' : undefined}
title={isInUse ? 'Can\'t delete a metadata profile that is attached to an artist or import list' : undefined}
>
<Button
kind={kinds.DANGER}