How to use the rx-extensions.getMany function in rx-extensions

To help you get started, we’ve selected a few rx-extensions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github noobaa / noobaa-core / frontend / src / app / components / modals / add-bucket-trigger-modal / add-bucket-trigger-modal.js View on Github external
constructor({ bucketName }) {
        super();

        this.bucketName = ko.unwrap(bucketName);

        this.observe(
            state$.pipe(
                getMany(
                    ['buckets', this.bucketName, 'triggers'],
                    'functions',
                    'accounts'
                )
            ),
            this.onState
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / application / main-layout / main-layout.js View on Github external
this.breadcrumbs = ko.observableArray();
        this.area = ko.observable();
        this.panel = ko.observable();
        this.isUploadButtonVisible = ko.observable(false);

        this.observe(
            state$.pipe(getMany(
                'location',
                'session'
            )),
            this.onLocation
        );

        this.observe(
            state$.pipe(
                getMany(
                    'accounts',
                    ['session', 'user']
                )
            ),
            this.onAccount
        );

        registerForAlerts();
    }
github noobaa / noobaa-core / frontend / src / app / components / bucket / bucket-objects-table / bucket-objects-table.js View on Github external
constructor({ bucketName }) {
        super();

        this.bucketName = ko.unwrap(bucketName);

        this.observe(
            state$.pipe(get('location')),
            this.onLocation
        );
        this.observe(
            state$.pipe(
                getMany(
                    ['buckets', this.bucketName],
                    'objects',
                    ['session', 'user'],
                    ['accounts'],
                    ['system', 'sslCert', 'installed']
                )
            ),
            this.onState
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / modals / upgrade-system-modal / upgrade-system-modal.js View on Github external
label: 'New Version',
                value: this.stagedVersion
            },
            {
                label: 'Validated at',
                value: this.testedAt
            },
            {
                label: 'Validation Result',
                value: 'Successful'
            }
        ];

        this.observe(
            state$.pipe(
                getMany(
                    ['location', 'params', 'system'],
                    'system',
                    ['topology', 'servers']
                )
            ),
            this.onState
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / bucket / bucket-summary / bucket-summary.js View on Github external
constructor({ bucketName }) {
        super();

        this.observe(
            state$.pipe(
                getMany(
                    ['buckets', ko.unwrap(bucketName)],
                    'hostPools'
                )
            ),
            this.onState
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / modals / edit-host-storage-drives-modal / edit-host-storage-drives-modal.js View on Github external
constructor({ host }) {
        super();

        this.host = ko.unwrap(host);

        this.observe(
            state$.pipe(
                getMany(
                    ['hosts', 'items', this.host, 'services'],
                    ['forms', this.formName]
                )
            ),
            this.onState
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / modals / edit-bucket-quota-modal / edit-bucket-quota-modal.js View on Github external
constructor({ bucketName }) {
        super();

        this.bucketName = ko.unwrap(bucketName);

        this.observe(
            state$.pipe(
                getMany(
                    ['buckets', this.bucketName],
                    ['forms', this.formName]
                )
            ),
            this.onState
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / modals / edit-namespace-bucket-data-placement-modal / edit-namespace-bucket-data-placement-modal.js View on Github external
constructor({ bucket }) {
        super();

        this.bucketName = ko.unwrap(bucket);

        this.observe(
            state$.pipe(
                getMany(
                    ['namespaceBuckets', this.bucketName],
                    'namespaceResources',
                    ['forms', this.formName]
                )
            ),
            this.onState
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / namespace-bucket / namespace-bucket-data-placement-form / namespace-bucket-data-placement-form.js View on Github external
constructor({ bucket }) {
        super();

        this.columns = columns;
        this.bucketName = ko.unwrap(bucket);
        this.rows = ko.observableArray();
        this.stateLoaded = ko.observable();

        this.observe(
            state$.pipe(
                getMany(
                    ['namespaceBuckets', this.bucketName],
                    'namespaceResources'
                )
            ),
            this.onBucket
        );
    }
github noobaa / noobaa-core / frontend / src / app / components / host / host-storage-form / host-storage-form.js View on Github external
constructor({ name }) {
        super();

        this.hostName = ko.unwrap(name);

        this.observe(
            state$.pipe(
                getMany(
                    ['hosts', 'items', this.hostName],
                    'location'
                )
            ),
            this.onHost
        );
    }

rx-extensions

Library for useful RxJS extensions and operators

ISC
Latest version published 5 years ago

Package Health Score

42 / 100
Full package analysis

Popular rx-extensions functions