+
this.setState({controlModalContent: 'collection', showControlModal: true})}>
@@ -289,7 +289,7 @@ export default class ObservationDetails extends Component {
Add to Collection
{User.owns(observation) ?
-
this.setState({showShareLinkModal: true})}>
@@ -297,7 +297,7 @@ export default class ObservationDetails extends Component {
Share Link
: null}
{observation.flags.length === 0 ?
-
this.setState({controlModalContent: 'flag', showControlModal: true})}>
@@ -306,7 +306,7 @@ export default class ObservationDetails extends Component {
: null}
{User.can('contact users') ?
-
this.setState({showEmail: true})}>
@@ -314,9 +314,11 @@ export default class ObservationDetails extends Component {
Contact Submitter
: null}
+
{this._renderControlModal()}
diff --git a/resources/assets/sass/_layout.scss b/resources/assets/sass/_layout.scss
index d9f74040..5246f96f 100644
--- a/resources/assets/sass/_layout.scss
+++ b/resources/assets/sass/_layout.scss
@@ -337,3 +337,17 @@ a.box {
flex-direction: row;
}
+.flex{
+ display: flex;
+}
+.flex-row{
+ display: flex;
+ flex-direction: row;
+}
+.flex-col{
+ display: flex;
+ flex-direction: column;
+}
+.fit-content{
+ width: fit-content;
+}
\ No newline at end of file