diff --git a/addons/api/addon/services/resource-filter-store.js b/addons/api/addon/services/resource-filter-store.js
index 9dbca0f5e..949541dac 100644
--- a/addons/api/addon/services/resource-filter-store.js
+++ b/addons/api/addon/services/resource-filter-store.js
@@ -104,6 +104,7 @@ export default class ResourceFilterStoreService extends Service {
const query = Object.assign({}, storeQuery);
// Apply filters to store query when available
if (filter.queryExpression) query.filter = filter.queryExpression;
+ console.log(modelName, query, 'queryyyyy', this.store.query(modelName, query))
return this.store.query(modelName, query);
}
}
diff --git a/addons/core/addon/helpers/resource-filter-param.js b/addons/core/addon/helpers/resource-filter-param.js
index e78ac20a7..fefc30009 100644
--- a/addons/core/addon/helpers/resource-filter-param.js
+++ b/addons/core/addon/helpers/resource-filter-param.js
@@ -49,14 +49,19 @@ export default class ResourceFilterParamHelper extends Helper {
* @return {object}
*/
compute([routeName, name]) {
+ console.log(routeName, name, 'route namess')
const owner = getOwner(this);
// Filter options
const route = owner.lookup(`route:${routeName}`);
const filterAllowedValuesKey = `filter-allowed-values-${name}`;
+ console.log(route, filterAllowedValuesKey, 'foiltallowed values')
const allowedValues = route[filterAllowedValuesKey];
+ console.log(allowedValues, 'allowed values')
+
// Selected filters
const rawValue = route[name];
const selectedValue = rawValue || null;
+ console.log(name, allowedValues, selectedValue, 'pfcrrfe')
return { name, allowedValues, selectedValue };
}
diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml
index 609f74266..f787cf133 100644
--- a/addons/core/translations/resources/en-us.yaml
+++ b/addons/core/translations/resources/en-us.yaml
@@ -135,6 +135,11 @@ session:
title_plural: Sessions
active_plural: Active Sessions
description: A session is a connection to a target initiated through Boundary.
+ status:
+ active: Active
+ pending: Pending
+ canceling: Canceling
+ terminated: Terminated
messages:
none:
title: No Sessions
diff --git a/addons/rose/addon/components/rose/dropdown/index.stories.mdx b/addons/rose/addon/components/rose/dropdown/index.stories.mdx
index 129302461..985e9011f 100644
--- a/addons/rose/addon/components/rose/dropdown/index.stories.mdx
+++ b/addons/rose/addon/components/rose/dropdown/index.stories.mdx
@@ -1,6 +1,7 @@
import { Meta, Story, Preview } from '@storybook/addon-docs/blocks';
import { hbs } from 'ember-cli-htmlbars';
-import { number, boolean } from '@storybook/addon-knobs';
+import { boolean, object } from '@storybook/addon-knobs';
+import { action } from '@storybook/addon-actions';
@@ -124,8 +125,8 @@ Dropdown indicator can be hidden using `showCaret` attribute.
```
-Dropdowns also support radio buttons. Currently, this is the only supported
-form field.
+Dropdowns also support radio buttons and checkboxes. Currently, radio buttons and checkboxes are the only supported
+form fields.
```html
@@ -145,6 +146,67 @@ form field.
```
+```html
+
+
+
+
+
+
+
+
+
+
+```
+
+
+
+ {{
+ template: hbs`
+
+
+
+
+
+
+
+
+
+ `,
+ context: {
+ disabled: boolean('disabled', false),
+ items: object('items', [
+ { id: 1, name: 'Foo' },
+ { id: 2, name: 'Bar' },
+ { id: 3, name: 'Baz' },
+ ]),
+ selectedItems: object('selectedItems', []),
+ onChange: action('changed'),
+ }
+ }}
+
+
+
+
Closing dropdown after clicking inside it's content can be ignored using `ignoreClickInside`. This is useful when dropdown contains keyvalue items that users need to select/copy/interact with.
```html
diff --git a/addons/rose/addon/styles/rose/components/dropdown/_item.scss b/addons/rose/addon/styles/rose/components/dropdown/_item.scss
index 2d9634e42..96e29dd5a 100644
--- a/addons/rose/addon/styles/rose/components/dropdown/_item.scss
+++ b/addons/rose/addon/styles/rose/components/dropdown/_item.scss
@@ -69,4 +69,78 @@ $checkmark: url("data:image/svg+xml;utf-8,